﻿<div class="mainbody">
<div class="navlink"><a href="#">控制面版</a> » 文章管理</div>
</div>


<div class="mainbody">
  <table style="width: 100%;" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr>
	  <td style="width: 150px;" valign="top">
	  
<div class="tableborder">
<div class="tableheader">文章管理</div>
<div class="leftmenubody">
<div class="leftmenuitem">• 
<%=link_to "文章管理",:controller=>'admin/topic',:action=>'index'%></div>

<div class="leftmenuitem">•
<%=link_to "添加文章",:controller=>'admin/topic',:action=>'new'%></div>

<div class="leftmenuitem">•
<%=link_to_remote (
			  "编辑文章", 
			  {
			  :update => "cp_main",
			  :url => {:controller=>"admin/topic",
			  :action => "list"},
			  :complete => "new Effect.Highlight('cp_main')"
			  },{:class=>"link_item"})
			   %>
</div>


</div>
</div> <!--END leftmenubody -->
</div> <!--END tableborder -->

<div class="tableborder">  
<div class="tableheader">分类管理</div>
<div class="leftmenubody">
<div class="leftmenuitem">• 
<%=link_to "分类管理",:controller=>'admin/type',:action=>'index'%></div>

<div class="leftmenuitem">•
<%=link_to_remote (
			  "添加分类", 
			  {
			  :update => "cp_main",
			  :url => {:controller=>"admin/topic",
			  :action => "new"},
			  :complete => "new Effect.Highlight('cp_main')"
			  },{:class=>"link_item"})
			   %>
</div>

<div class="leftmenuitem">•
<%=link_to_remote (
			  "编辑文章", 
			  {
			  :update => "cp_main",
			  :url => {:controller=>"admin/topic",
			  :action => "list"},
			  :complete => "new Effect.Highlight('cp_main')"
			  },{:class=>"link_item"})
			   %>
</div>
</div> <!--END leftmenubody -->
</div> <!--END tableborder -->  
		  
	</div> <!--END mainbody -->  
	 
	 </td>
		
	  <td style="width: 20px;" valign="top"></td>

	  <td valign="top">

	  <div id="cp_main">
		<%= error_messages_for 'user' %>
		<%= form_tag :action => 'update' %>

		  <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
			<tbody><tr>
			  <td class="rightmainbody">
				  <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">

				  <tbody>
				  <tr class="tdbheader">
					<td colspan="2">系统设置</td>
				  </tr>

				  <tr class="tablecell">
					<td width="50%">
					<b><%=@app_name.title %></b><br/>
					<%=@app_name.description %></td>
					<td><%= text_field_tag 'name', nil  ,{:value=>"#{@app_name.value}",:size=>50, :class => 'formfield' }%></td>
				  </tr>

				  <tr class="tablecell">
					<td width="50%">
					<b><%=@app_url.title %></b><br/>
					<%=@app_url.description %></td>
					<td><%= text_field_tag 'url', nil  ,{:size=>50,:maxlength=>"50",:value=>"#{@app_url.value}", :class => 'formfield'} %>
					</td>
				  </tr>    

				 <tr class="tablecell">
					<td width="50%">
					<b><%=@app_title.title %></b><br/>
					<%=@app_title.description %></td>
					<td>
					<%= text_field_tag 'title', nil  ,{:size=>50,:maxlength=>"50",:value=>"#{@app_title.value}", :class => 'formfield'} %>
					</td>
				  </tr> 

				 <tr class="tablecell">
					<td width="50%">
					<b><%=@app_subtitle.title %></b><br/>
					<%=@app_subtitle.description %></td>
					<td>
					<%= text_field_tag 'subtitle', nil  ,{:size=>50,:maxlength=>"50",:value=>"#{@app_subtitle.value}", :class => 'formfield'} %>
					</td>
				  </tr> 





				  <tr class="tablecell">
					<td colspan="2" align="center">

					<%= submit_tag '提交!', :class=>"formbutton"  %>
					<input value="重置" class="formbutton" type="reset">
					</td>
				  </tr>
				  <tr>
					<td class="tablebottom" colspan="2"></td>
				  </tr>
				</tbody></table></td>
			</tr>

		  </tbody></table>

	   </div>
		</td>
	</tr>
  </tbody></table>
</div>















